﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NakedObjects;
using System.ComponentModel;
using RTC.Modelo.UFC.UserProfile;

namespace RTC.Modelo.Entidades
{
    [DisplayName("Operador")]
    public class Operador: Entidad
    {
        #region Atributos
        [Hidden]
        public virtual int Id { get; set; }

        [Title, MemberOrder(10), DisplayName("Operador")]
        public virtual String Nombre { get; set; }
        [MemberOrder(20), DisplayName("Rol")]
        public virtual Rol Rol { set; get; }

        [Hidden,Disabled, DisplayName("Fecha Modificacion")]
        public virtual DateTime ModifiedDate { get; set; }

        #endregion
        [Hidden]
        protected override void SetModifiedDate()
        {
            ModifiedDate = DateTime.Now;
        }

        //private OperadorProfile opProfile ;
        //public virtual OperadorProfile Profile { 
        //    get{
        //        if ( opProfile== null){
        //            opProfile = Container.NewTransientInstance<OperadorProfile>();
        //        }
        //        return opProfile;
        //    } 
        //    set{
        //            opProfile = value;
        //    }
        //}
      

    }
}
